<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>登陆</title>
    <link rel="stylesheet" href="${rc.contextPath}/plugins/layui/css/layui.css">
    <style>
        body {
            display: -ms-flexbox;
            display: flex;
            -ms-flex-align: center;
            align-items: center;
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #f5f5f5;
            text-align: center;
        }

        .form-signin {
            width: 100%;
            max-width: 330px;
            padding: 15px;
            margin: auto;
        }

        .form-signin input {
            margin-bottom: 16px;
        }
    </style>
</head>

<body>
    <div class="form-signin">
        <#if RequestParameters['error']??>
            <blockquote class="layui-elem-quote layui-bg-orange">无效的用户名或密码</blockquote>
        </#if>
        <#if RequestParameters['logout']??>
            <blockquote class="layui-elem-quote layui-bg-blue">你已经注销了</blockquote>
        </#if>
        <div class="layui-card">
            <div class="layui-card-header">登陆</div>
            <div class="layui-card-body">
                <form class="layui-form" action="${rc.contextPath}/login" method="POST">
                    <input type="text" name="username" required placeholder="请输入用户名" autocomplete="off"
                        class="layui-input">
                    <input type="password" name="password" required placeholder="请输入密码" autocomplete="off"
                        class="layui-input">
                    <button type="submit" class="layui-btn layui-btn-fluid">登陆</button>
                </form>
            </div>
        </div>
    </div>
    <script src="${rc.contextPath}/plugins/layui/layui.all.js"></script>
</body>

</html>